home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.earthlink.net!usenet
- From: laserlight@earthlink.net (Lewis B)
- Newsgroups: comp.lang.c++
- Subject: Re: linked list
- Date: Sun, 03 Mar 1996 00:42:09 GMT
- Organization: Earthlink Network, Inc.
- Message-ID: <4haq0f$1k1@chile.it.earthlink.net>
- References: <DnKwDt.Ct0@seas.ucla.edu>
- NNTP-Posting-Host: laserlight.earthlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- tram@cloudburst.seas.ucla.edu (Tri Tram) wrote:
-
- > I was wondering in a linked list, how do you figure out how you
- >are in a linked list? And how do you add a node to a link list?
- >suppose I have:
-
- >struct Node
- >{
- > char *name;
- > Node *next;
- >}
-
- >let's say I have
- >ann->bob->susie in my list. how do I go about to get
- >ann->bob->lacy->susie?
- >thanks for any help.
-
- >--
- >-----------------------------------------------------------------
- >Tri Tram, Computer Science and Engineering at UCLA
- >http://www.seas.ucla.edu/~tram
-
- As simply as I can. change bobs *next to point to lacy and
- lacys *next to point to susie.
- It does not matter where in free memory they are in relation to each
- other they are as long as the *next pointers know.
- Lewis B
-
-
-